﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace ConsoleApplication14
{
	class Program
	{
		static void Main( string[] args )
		{
			int start = 0;
			List<char> letters = new List<char>();

			while ( start <= char.MaxValue )
			{
				if ( char.IsLetterOrDigit( ( char )start ) )
				{
					letters.Add( ( char )start );
				}
				else if ( letters.Count > 0 )
				{
					Console.WriteLine( "Conjuto: {0} - {1}", ( int )letters.First(), ( int )letters.Last() );
					Console.WriteLine( new String( letters.ToArray() ) );
					//Console.WriteLine();

					Console.ReadLine();

					letters = new List<char>();
				}

				start++;
			}

			if ( letters.Count > 0 )
			{
				Console.WriteLine( "Conjuto: {0} - {1}", ( int )letters.First(), ( int )letters.Last() );
				Console.WriteLine( new String( letters.ToArray() ) );
				Console.WriteLine();

				letters = new List<char>();
			}

			Console.WriteLine( "Finalizou." );
			Console.ReadLine();
		}
	}
}
